PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Appearance Manager >

Programming With the Appearance Manager


DrawThemeModelessDialogFrame

Draws a beveled outline inside the content area of a modeless dialog box.

pascal OSStatus DrawThemeModelessDialogFrame (
                     const Rect *inRect,
                     ThemeDrawState inState);
inRect
A pointer to a structure of type Rect . Before calling DrawThemeModelessDialogFrame , set the rectangle to the boundary of the window's content area (that is, its port rectangle), inset by 1 pixel on each side, in local coordinates.
inState
A value of type ThemeDrawState . Pass a constant specifying the state in which to draw the modeless dialog box frame; see Theme Draw State Constants for descriptions of possible values. The frame can be drawn as active or inactive; passing kThemeStatePressed produces an error.
function result
A result code; see Result Codes .
DISCUSSION

The DrawThemeModelessDialogFrame function draws a beveled frame, no more than 2 pixels wide, that bounds the window's content area. You can use this function to make a custom modeless dialog box theme-compliant; the Dialog Manager automatically draws the interior frame for standard dialog boxes.

SPECIAL CONSIDERATIONS

If you use DrawThemeModelessDialogFrame to draw a frame for a modeless dialog box, your application must explicitly invalidate and redraw the frame area if the dialog box is resized.

VERSION NOTES

Available with Appearance Manager 1.0.1 and later.


© 1999 Apple Computer, Inc. – (Last Updated 29 April 99)